<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title>无标题文档</title>

	<link href="/yilianti/Public/Admin/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/yilianti/Public/Admin/css/page.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/yilianti/Public/Admin/js/jquery.js"></script>
	<script type="text/javascript" src="/yilianti/Public/Admin/js/jquery.idTabs.min.js"></script>
	<script type="text/javascript" src="/yilianti/Public/Admin/js/select-ui.min.js"></script>
	
	<!-- 日历引入 -->
	<link href="/yilianti/Public/Admin/css/calendar.css" rel="stylesheet" type="text/css" />

	<!--文字编辑器引入-->
	<script type="text/javascript" charset="utf-8" src="/yilianti/Public/kindeditor/kindeditor-min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/yilianti/Public/kindeditor/lang/zh_CN.js"></script>
	<link href="/yilianti/Public/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />

	<script src="/yilianti/Public/Admin/js/layer/layer.js"></script>



</head>

<body>

	<div class="place">

		<span>位置：</span>

		<ul class="placeul">

		<li><a href="/yilianti/admin.php/Index/right">首页</a></li>

		
<li><a href="#">分类列表</a></li>


		</ul>

    </div>


    <div class="rightinfo">
		<table class="imgtable">
			<thead>
				<tr>
					<th>ID</th>
					<th>医院名称</th>
					<th>账号</th>
					<th>联系人</th>
					<th>级别</th>
					<th>省份</th>
					<th>转诊数量</th>
					<th>添加时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php if($list != null): if(is_array($list)): foreach($list as $key=>$listrow): ?><tr style="height:32px">
							<td><?php echo ($listrow["id"]); ?></td>
							<td><?php echo ($listrow["name"]); ?></td>
							<td><?php echo ($listrow["phone"]); ?></td>
							<td><?php echo ($listrow["contacts"]); ?></td>
							<td><?php echo ($listrow["level"]); ?>级</td>
							<td><?php echo (province_name($listrow["province_id"])); ?></td>
							<td><?php echo ($listrow["referral_num"]); ?></td>
							<td><?php echo ($listrow["addtime"]); ?></td>
							<td>
								<p><a href="/yilianti/admin.php/Doctor/hospitaldetail/id/<?php echo ($listrow["id"]); ?>">详情</a>&nbsp;&nbsp;&nbsp;
								<a href="/yilianti/admin.php/Doctor/hospitalmod/id/<?php echo ($listrow["id"]); ?>">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
								<a href="/yilianti/admin.php/Doctor/hospitaldel/id/<?php echo ($listrow["id"]); ?>" onclick="if (confirm('确定要删除吗？')) return true; else return false;">删除</a></p>
							</td>
						</tr><?php endforeach; endif; ?>
				<?php else: ?>
					<tr style="height:32px"><td colspan="9">暂无记录！</td></tr><?php endif; ?>
			</tbody>
		</table>
		<div class="yellow"><?php echo ($pageshow); ?></div>
    </div>
<script type="text/javascript">
$('.imgtable tbody tr:odd').addClass('odd');
</script>


<script type="text/javascript">
KindEditor.ready(function(K) {
	K.create('#pagecontent', {
		allowFileManager : true
	});

	var editor = K.editor({
		allowFileManager : true
	});
	//上传图片（本地、网络）
	K('#uploadbtn').click(function() {
		editor.loadPlugin('image', function() {
			editor.plugin.imageDialog({
				showRemote : false,
				imageUrl : K('#titlepic').val(),
				clickFn : function(url, title, width, height, border, align) {
					K('#titlepic').val(url);
                    K('#showimg').attr('src',url);
                    K('#titlepicpreview').attr('src', url);
					editor.hideDialog();
				}
			});
		});
	});

	//文件上传
	K('#insertfile').click(function() {
		editor.loadPlugin('insertfile', function() {
			editor.plugin.fileDialog({
				fileUrl : K('#fileurl').val(),
				clickFn : function(url, title) {
					K('#fileurl').val(url);
					editor.hideDialog();
				}
			});
		});
	});
});
/*//实例化编辑器
	var editor = K.editor({
		allowFileManager : true
	});

	//文件上传
	K('#insertfile').click(function() {
		editor.loadPlugin('insertfile', function() {
			editor.plugin.fileDialog({
				fileUrl : K('#url').val(),
				clickFn : function(url, title) {
					K('#url').val(url);
					editor.hideDialog();
				}
			});
		});
	});
	
	//上传图片（本地、网络）
	K('#image1').click(function() {
		editor.loadPlugin('image', function() {
			editor.plugin.imageDialog({
				imageUrl : K('#url1').val(),
				clickFn : function(url, title, width, height, border, align) {
					K('#url1').val(url);
					editor.hideDialog();
				}
			});
		});
	});
});
//批量上传图片
KindEditor.ready(function(K) {
	var editor = K.editor({
		allowFileManager : true
	});
	K('#J_selectImage').click(function() {
		editor.loadPlugin('multiimage', function() {
			editor.plugin.multiImageDialog({
				clickFn : function(urlList) {
					var div = K('#J_imageView');
					div.html('');
					K.each(urlList, function(i, data) {
						div.append('<img src="' + data.url + '">');
					});
					editor.hideDialog();
				}
			});
		});
	});
});*/
</script>

</body>
</html>